From: Florian Müllner Date: Thu, 20 Jun 2024 12:32:17 +0000 (+0200) Subject: barLevel: Update cached style values before chaining up X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~70 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1bab7b32e58f40120cc7170eddd111c81b361691;p=gnome-shell.git barLevel: Update cached style values before chaining up St.DrawingArea emits the `repaint` signal on style changes, so if we chain up first, drawing still happens with the previously cached values. Part-of: --- diff --git a/js/ui/barLevel.js b/js/ui/barLevel.js index 3e0f531c6..ab1495299 100644 --- a/js/ui/barLevel.js +++ b/js/ui/barLevel.js @@ -104,8 +104,6 @@ export const BarLevel = GObject.registerClass({ } vfunc_style_changed() { - super.vfunc_style_changed(); - const themeNode = this.get_theme_node(); this._barLevelHeight = themeNode.get_length('-barlevel-height'); this._overdriveSeparatorWidth = @@ -114,6 +112,8 @@ export const BarLevel = GObject.registerClass({ this._barLevelColor = themeNode.get_color('-barlevel-background-color'); this._barLevelActiveColor = themeNode.get_color('-barlevel-active-background-color'); this._barLevelOverdriveColor = themeNode.get_color('-barlevel-overdrive-color'); + + super.vfunc_style_changed(); } vfunc_repaint() {